package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Author: 熊冰
 * @Date: 2020/3/23 14:10
 *  统计图使用
 */
public class Statistical {
	/**
	 * @Author 熊冰 数量
	 * @Date 2020/3/23 14:14
	 */
	private Integer statisticalNum;
	/**
	 * @Author 熊冰  名称
	 * @Date 2020/3/23 14:15
	 */
	private String  statisticalName;
	/**
	 * @Author 熊冰   占比
	 * @Date 2020/3/23 14:15
	 */
	private String  statisticalRatio;

	/**
	 * @Author 熊冰 时间分类  1 当天 2 本周 3 本月 4 本季度 5 本年度 6 当天八点 7 近七天 8 近30天  9 近 一年
	 * @Date 2020/3/23 14:14
	 */
	private Integer dateStateId;

	/**
	 * @Author 熊冰 开始时间
	 * @Date 2020/3/23 14:17
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private String startDate;
	/**
	 * @Author 熊冰  结束时间
	 * @Date 2020/3/23 14:17
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private String endDate;

	@Override
	public String toString() {
		return "Statistical{" +
				"statisticalNum=" + statisticalNum +
				", statisticalName='" + statisticalName + '\'' +
				", statisticalRatio='" + statisticalRatio + '\'' +
				", dateStateId=" + dateStateId +
				", startDate=" + startDate +
				", endDate='" + endDate + '\'' +
				'}';
	}

	public Integer getStatisticalNum() {
		return statisticalNum;
	}

	public void setStatisticalNum(Integer statisticalNum) {
		this.statisticalNum = statisticalNum;
	}

	public String getStatisticalName() {
		return statisticalName;
	}

	public void setStatisticalName(String statisticalName) {
		this.statisticalName = statisticalName== null ? null : statisticalName.trim().replace(" ","");
	}

	public String getStatisticalRatio() {
		return statisticalRatio;
	}

	public void setStatisticalRatio(String statisticalRatio) {
		this.statisticalRatio = statisticalRatio== null ? null : statisticalRatio.trim().replace(" ","");
	}

	public Integer getDateStateId() {
		return dateStateId;
	}

	public void setDateStateId(Integer dateStateId) {
		this.dateStateId = dateStateId;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
}
